#!/bin/bash

# ex: bash experimental/jhkim/pta_lmpass.sh --trading_date=20191223-20191228

rm log_pta/*
rm order_plot/*

./pyrunner coin/research/cmd_generator.py --strategy_group=lm-pass --cmd=order_plot \
--strategy_name=lm_pass_huobi_futures_btc_quarter_10s --subsymbols=Huobi:Futures:BTC-USD.QUARTER \
--owner=prestoinvt12 \
--assert_feed_cache \
$@ | bash &

./pyrunner coin/research/cmd_generator.py --strategy_group=lm-pass --cmd=order_plot \
--strategy_name=lm_pass_okex_btc_swap_10s --subsymbols=Okex:Futures:BTC-USD.PERPETUAL \
--owner=xunke06_swap \
--assert_feed_cache \
$@ | bash &

wait

cp order_plot/mark_return*.png log_pta/

pgrep -f order_plot | xargs kill -9
